package com.ideal.manage.esms.bean.alarm;

import com.ideal.manage.esms.bean.project.EquipmentManage;
import com.ideal.manage.esms.bean.project.ProjectManage;
import com.ideal.manage.esms.bean.project.ThresholdManage;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 报警管理:
 *          阈值管理
 */

@Entity
@Table(name = "esms_alarm_threshold_manage")
public class Threshold implements Serializable {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;
    @ManyToOne
    @JoinColumn(name = "projectId")
    private ProjectManage projectManage;
    @ManyToOne
    @JoinColumn(name = "equipmentId")
    private EquipmentManage equipmentManage;
    @ManyToOne
    @JoinColumn(name = "thresholdId")
    private ThresholdManage thresholdManage;
    private String thresholdName;
    private String setVal;
    private String suggestVal;
    private Date updateTime;
    private Date createTime;
    private int isValid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ProjectManage getProjectManage() {
        return projectManage;
    }

    public void setProjectManage(ProjectManage projectManage) {
        this.projectManage = projectManage;
    }

    public EquipmentManage getEquipmentManage() {
        return equipmentManage;
    }

    public void setEquipmentManage(EquipmentManage equipmentManage) {
        this.equipmentManage = equipmentManage;
    }

    public ThresholdManage getThresholdManage() {
        return thresholdManage;
    }

    public void setThresholdManage(ThresholdManage thresholdManage) {
        this.thresholdManage = thresholdManage;
    }

    /*public String getInitializeVal() {
        return initializeVal;
    }

    public void setInitializeVal(String initializeVal) {
        this.initializeVal = initializeVal;
    }*/

    public String getThresholdName() {
        return thresholdName;
    }

    public void setThresholdName(String thresholdName) {
        this.thresholdName = thresholdName;
    }

    public String getSetVal() {
        return setVal;
    }

    public void setSetVal(String setVal) {
        this.setVal = setVal;
    }

    public String getSuggestVal() {
        return suggestVal;
    }

    public void setSuggestVal(String suggestVal) {
        this.suggestVal = suggestVal;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getIsValid() {
        return isValid;
    }

    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }
}
